package com.home.demo.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.home.demo.common.utils.PageUtils;
import com.home.demo.common.utils.Query;

import com.home.demo.dao.GuideDao;
import com.home.demo.entity.GuideEntity;
import com.home.demo.service.GuideService;


@Service("guideService")
public class GuideServiceImpl extends ServiceImpl<GuideDao, GuideEntity> implements GuideService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GuideEntity> page = this.page(
                new Query<GuideEntity>().getPage(params),
                new QueryWrapper<GuideEntity>()
        );

        return new PageUtils(page);
    }

}